﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Text.RegularExpressions;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Core;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

using System.Windows.Input;

// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236
using WinRTXamlToolkit.Input;

namespace Wimm.CustomContols
{
    public sealed partial class MoneyInputControl : UserControl
    {
        public ICommand AddButtonCommand
        {
            get 
            { 
                return (ICommand)GetValue(AddButtonCommandProperty); 
            }
            set 
            { 
                SetValue(AddButtonCommandProperty, value); 
            }
        }

        // Using a DependencyProperty as the backing store for AddButtonCommand.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty AddButtonCommandProperty =
            DependencyProperty.Register("AddButtonCommand", typeof(ICommand), typeof(MoneyInputControl), new PropertyMetadata(0));

        public MoneyInputControl()
        {
            this.InitializeComponent();
        }
    }
}
